using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using System.Data;
using System.Collections;
using DAOLayer;


namespace BUSLayer
{
    public class TaiKhoanBus
    {
        public DataTable LayBangTaiKhoan()
        {
            TaiKhoanDao tkdao = new TaiKhoanDao();
            DataTable dt = new DataTable();
            dt = tkdao.LayBangTaiKhoan();
            return dt;
        }

        public ArrayList LayDanhSachTaiKhoan(DataTable dt)
        {
            ArrayList ds = new ArrayList();
            TaiKhoanDao tkdao = new TaiKhoanDao();
            ds = tkdao.LayDanhSachTaiKhoan(dt);
            return ds;
        }

        public void CapNhatTaiKhoan(DataTable dt)
        {
            TaiKhoanDao tkdao = new TaiKhoanDao();
            tkdao.CapNhatBangTaiKhoan(dt);
        }
    }
}
